package edu.sctu.practice.class02.lvchang.test04;

/**
 * Created by Administrator on 2015/10/9.
 */
public class Number {

    private int n1;
    private int n2;


    public Number(int n1, int n2) {
        this.n1 = n1;
        this.n2 = n2;
    }

    public void countAddition() {
        System.out.println("n1+n2=" + (n1 + n2));
    }

    public void countSubtration() {
        System.out.println("n1-n2=" + (n1 - n2));
    }

    public void cpuntMultiplication() {
        System.out.println("n1*n2=" + (n1 * n2));
    }

    public void countDivision() {
        System.out.println("n1/n2=" + (n1 / n2));
    }

    public static void main(String[] args) {

        Number number = new Number(56, 14);

        number.countAddition();
        number.countSubtration();
        number.cpuntMultiplication();
        number.countDivision();

    }
}
